Skip to content

Conversation

niquola
Copy link

@niquola niquola commented Mar 13, 2015

No description provided.

@0x6e6562
Copy link

Could you give an example of how you would use this?

@niquola
Copy link
Author

niquola commented Mar 14, 2015

This patch is implementation of ideas discussed in #8.
$postgres_error variable could be used by other modules to report error:

add_after_body $postgres_error;
more_set_headers "X-Error: $postgres_error";

In our case, we've created simple postgresql web console based on ngx_postgres and showing error messages is critical for UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants